/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Admin
 * Date: 2022-06-08
 * Time: 19:09
 */
public class TestDemo {
    public static void main(String[] args) {
        binarySearchTree binarySearchTree = new binarySearchTree();
        int[] array = {8,3,4,5,1,2,4,1,5,6};
        for (int i = 0; i < array.length; i++) {
            binarySearchTree.insert(array[i]);
        }

        binarySearchTree.inOder(binarySearchTree.root);
        binarySearchTree.remove(3);
        System.out.println();
        binarySearchTree.remove(8);
        binarySearchTree.inOder(binarySearchTree.root);

    }
}
